<!-- 卡券 -->
<template>
	<view>
		<view class="webView">
			<web-view :src="url"></web-view>
		</view>
	</view>
</template>

<script>
	import myRequest from '../../../api/index.js'
	export default {
		data() {
			return {
				url: ""
			}
		},
		onLoad() {
			this.getCoupon()
		},
		methods: {
			async getCoupon() {
				let res = await myRequest.getCoupon({
					no: '1'
				})
				if (res.status) {
					this.url = res.url
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.webView {
		padding-top: 88rpx;
	}
</style>
